package Teste;

public class Threading extends Thread {
    
    private int i;

    @Override
        public void run() {

               while(true)

                       System.out.println("Número : " + i++);

        }
    
}
